<?php

namespace app\api\validation;

use think\Validate;

class Address extends Validate
{
    protected $rule = [
        'contact_name' => 'require',
        'contact_mobile' => 'require',
        'province' => 'require',
        'city' => 'require',
        'district' => 'require',
        'address' => 'require',
    ];

    protected $message = [
        'contact_name.require' => '联系人不能为空',
        'contact_mobile.require' => '联系电话不能为空',
        'province.require' => '省不能为空',
        'city.require' => '市不能为空',
        'district.require' => '区不能为空',
        'address.require' => '详细地址不能为空',
    ];
}